package com.sky.employee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.employee.annotation.AutoFill;
import com.sky.entity.Employee;
import com.sky.enumeration.OperationType;
import com.sky.result.Result;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    Result addEmployee(EmployeeDTO employeeDTO);

    Result selectEmployeePage(EmployeePageQueryDTO employeePageQueryDTO);

    void startOrStop(Integer status, Long id);

    Employee echoById(Long id);
    @AutoFill(OperationType.UPDATE)
    void revise(Employee employee);
}
